---
import { Code } from '@astrojs/starlight/components';

const code = `
sealed class CounterEvent {}
final class Initial extends CounterEvent {}
final class CounterInitialized extends CounterEvent {}
final class Increment extends CounterEvent {}
final class DoIncrement extends CounterEvent {}
final class IncrementCounter extends CounterEvent {}
`;
---

<Code code={code} lang="dart" title="counter_event.dart" />
